Connect LayoutManager to LayoutChild
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 28 Mar 2019 16:58:00 +0000 (16:58 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 28 Mar 2019 16:58:00 +0000 (16:58 +0000)
commit3f0f7c73e091c2179b2175eb56aef62f16dd9b10
tree483b00eff6aa1b6c4bef65edda1edf209190e31c
parent3d6a456c85a36de029bd0fbbeb9eba5f387d2c0c
Connect LayoutManager to LayoutChild

If we want to inspect the type of layout properties exposed by a
GtkLayoutManager, we need a way to connect the layout manager type to
the GtkLayoutChild type it creates. In order to do so, we can set the
GtkLayoutChild type on a field of the GtkLayoutManagerClass structure.

Storing the GtkLayoutChild type on the class structure of the layout
manager also allows us to implement a default create_layout_child()
virtual function.
gtk/gtkfixedlayout.c
gtk/gtklayoutmanager.c
gtk/gtklayoutmanager.h